-- BP 7.1.6 content: InstanceStateMachine syschar: 3 persistence-version: 7.1.6

INSERT INTO SM_ISM
	VALUES ("2972f6af-1ec2-4897-83d6-c34015f60429",
	"2226400a-ceb6-4a62-b5fa-47c383fedf22");
INSERT INTO SM_SM
	VALUES ("2972f6af-1ec2-4897-83d6-c34015f60429",
	'',
	0);
INSERT INTO SM_MOORE
	VALUES ("2972f6af-1ec2-4897-83d6-c34015f60429");
INSERT INTO SM_LEVT
	VALUES ("b7c8bd27-bafd-47db-90e2-437b0015485d",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_SEVT
	VALUES ("b7c8bd27-bafd-47db-90e2-437b0015485d",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_EVT
	VALUES ("b7c8bd27-bafd-47db-90e2-437b0015485d",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000",
	1,
	'create',
	0,
	'',
	'RREF1',
	'');
INSERT INTO SM_LEVT
	VALUES ("0762db20-ff3a-4e7f-9c1b-eabf5fdf592a",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_SEVT
	VALUES ("0762db20-ff3a-4e7f-9c1b-eabf5fdf592a",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_EVT
	VALUES ("0762db20-ff3a-4e7f-9c1b-eabf5fdf592a",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000",
	2,
	'destroy',
	0,
	'',
	'RREF2',
	'');
INSERT INTO SM_STATE
	VALUES ("4ccc1507-aa74-4ffb-b09a-d572500faac0",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000",
	'Creating',
	1,
	0);
INSERT INTO SM_CH
	VALUES ("4ccc1507-aa74-4ffb-b09a-d572500faac0",
	"b7c8bd27-bafd-47db-90e2-437b0015485d",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000",
	'');
INSERT INTO SM_SEME
	VALUES ("4ccc1507-aa74-4ffb-b09a-d572500faac0",
	"b7c8bd27-bafd-47db-90e2-437b0015485d",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_SEME
	VALUES ("4ccc1507-aa74-4ffb-b09a-d572500faac0",
	"0762db20-ff3a-4e7f-9c1b-eabf5fdf592a",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_STATE
	VALUES ("e01945fc-d801-4f49-950a-db659c2ffe83",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000",
	'Destroying',
	2,
	1);
INSERT INTO SM_CH
	VALUES ("e01945fc-d801-4f49-950a-db659c2ffe83",
	"b7c8bd27-bafd-47db-90e2-437b0015485d",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000",
	'');
INSERT INTO SM_SEME
	VALUES ("e01945fc-d801-4f49-950a-db659c2ffe83",
	"b7c8bd27-bafd-47db-90e2-437b0015485d",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_CH
	VALUES ("e01945fc-d801-4f49-950a-db659c2ffe83",
	"0762db20-ff3a-4e7f-9c1b-eabf5fdf592a",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000",
	'');
INSERT INTO SM_SEME
	VALUES ("e01945fc-d801-4f49-950a-db659c2ffe83",
	"0762db20-ff3a-4e7f-9c1b-eabf5fdf592a",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_CH
	VALUES ("e01945fc-d801-4f49-950a-db659c2ffe83",
	"b7c8bd27-bafd-47db-90e2-437b0015485d",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000",
	'');
INSERT INTO SM_SEME
	VALUES ("e01945fc-d801-4f49-950a-db659c2ffe83",
	"b7c8bd27-bafd-47db-90e2-437b0015485d",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_CRTXN
	VALUES ("5a7b0cec-ae4e-4ff1-86ab-0f19afe7186e",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"b7c8bd27-bafd-47db-90e2-437b0015485d",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_TXN
	VALUES ("5a7b0cec-ae4e-4ff1-86ab-0f19afe7186e",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"4ccc1507-aa74-4ffb-b09a-d572500faac0",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_NSTXN
	VALUES ("5c38aa8c-b246-48bd-a645-13758c5b34db",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"4ccc1507-aa74-4ffb-b09a-d572500faac0",
	"0762db20-ff3a-4e7f-9c1b-eabf5fdf592a",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_TXN
	VALUES ("5c38aa8c-b246-48bd-a645-13758c5b34db",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"e01945fc-d801-4f49-950a-db659c2ffe83",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_MOAH
	VALUES ("e2fc17ed-6df7-459a-aeb0-7ad62bbc58cd",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"4ccc1507-aa74-4ffb-b09a-d572500faac0");
INSERT INTO SM_AH
	VALUES ("e2fc17ed-6df7-459a-aeb0-7ad62bbc58cd",
	"2972f6af-1ec2-4897-83d6-c34015f60429");
INSERT INTO SM_ACT
	VALUES ("e2fc17ed-6df7-459a-aeb0-7ad62bbc58cd",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	1,
	'// Only create if type doesn''t exist
select many rrefs from instances of RREF;
if (cardinality rrefs == 1)
   create object instance type of TYPE;
   create object instance core of CORE;
   relate type to core across R401;
   type.name = "relationship instance reference";
   core.type = data_t::RELATIONSHIP_INSTANCE_REFERENCE;
   relate core to self across R403;
   self.generateSupportedOperators();
else
   LOG::LogFailure(message:"Multiple creation of type RREF attempted!");
   generate RREF2:destroy to self;
end if;',
	'',
	0);
INSERT INTO SM_TAH
	VALUES ("4e942aca-7571-4a99-a035-505080c38f61",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"5a7b0cec-ae4e-4ff1-86ab-0f19afe7186e");
INSERT INTO SM_AH
	VALUES ("4e942aca-7571-4a99-a035-505080c38f61",
	"2972f6af-1ec2-4897-83d6-c34015f60429");
INSERT INTO SM_ACT
	VALUES ("4e942aca-7571-4a99-a035-505080c38f61",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	1,
	'',
	'',
	0);
INSERT INTO SM_MOAH
	VALUES ("43f91e03-408f-4504-b268-6a62f35c462f",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"e01945fc-d801-4f49-950a-db659c2ffe83");
INSERT INTO SM_AH
	VALUES ("43f91e03-408f-4504-b268-6a62f35c462f",
	"2972f6af-1ec2-4897-83d6-c34015f60429");
INSERT INTO SM_ACT
	VALUES ("43f91e03-408f-4504-b268-6a62f35c462f",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	1,
	'select one core related by self->CORE[R403];
if (not empty core)
  core.destroy();
  unrelate core from self across R403;
  delete object instance core;
end if;',
	'',
	0);
INSERT INTO SM_TAH
	VALUES ("85ab1ff6-0dcd-4b0e-a347-6cd37423b283",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	"5c38aa8c-b246-48bd-a645-13758c5b34db");
INSERT INTO SM_AH
	VALUES ("85ab1ff6-0dcd-4b0e-a347-6cd37423b283",
	"2972f6af-1ec2-4897-83d6-c34015f60429");
INSERT INTO SM_ACT
	VALUES ("85ab1ff6-0dcd-4b0e-a347-6cd37423b283",
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	1,
	'',
	'',
	0);
INSERT INTO GD_MD
	VALUES ("fe4eff0f-d141-4b5d-b665-36bcde14e4dc",
	8,
	"2972f6af-1ec2-4897-83d6-c34015f60429",
	40,
	0,
	0,
	1,
	1,
	1,
	12,
	1,
	0,
	0,
	0,
	0,
	0,
	'4.1.17',
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Relationship Instance Reference::Instance State Machine');
INSERT INTO GD_GE
	VALUES ("1f520bd0-fd4d-47f2-8df4-26294862b008",
	"fe4eff0f-d141-4b5d-b665-36bcde14e4dc",
	"4ccc1507-aa74-4ffb-b09a-d572500faac0",
	41,
	0,
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Relationship Instance Reference::Instance State Machine::Creating');
INSERT INTO GD_SHP
	VALUES ("1f520bd0-fd4d-47f2-8df4-26294862b008");
INSERT INTO GD_NCS
	VALUES ("1f520bd0-fd4d-47f2-8df4-26294862b008");
INSERT INTO DIM_ND
	VALUES (169.000000,
	97.000000,
	"1f520bd0-fd4d-47f2-8df4-26294862b008");
INSERT INTO DIM_GE
	VALUES (4685.000000,
	3115.000000,
	"1f520bd0-fd4d-47f2-8df4-26294862b008",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("1f520bd0-fd4d-47f2-8df4-26294862b008",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_CON
	VALUES ("6a598b2b-1c70-48d7-962d-ad540c60fd96",
	4758.000000,
	3115.000000,
	"1f520bd0-fd4d-47f2-8df4-26294862b008");
INSERT INTO DIM_CON
	VALUES ("04e1c6b0-4d62-48fa-82df-3ae951774a8b",
	4488.000000,
	3205.000000,
	"1f520bd0-fd4d-47f2-8df4-26294862b008");
INSERT INTO DIM_CON
	VALUES ("3dc1bd44-e972-4250-895e-b335d0f22d62",
	4770.000000,
	3212.000000,
	"1f520bd0-fd4d-47f2-8df4-26294862b008");
INSERT INTO GD_GE
	VALUES ("0a06fd51-6ac7-4863-9ba4-7d35d8274bc4",
	"fe4eff0f-d141-4b5d-b665-36bcde14e4dc",
	"5a7b0cec-ae4e-4ff1-86ab-0f19afe7186e",
	49,
	0,
	'RREF1: create');
INSERT INTO GD_CON
	VALUES ("0a06fd51-6ac7-4863-9ba4-7d35d8274bc4",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("5fd4b85d-f891-4612-913b-7a54265a4be8",
	"0a06fd51-6ac7-4863-9ba4-7d35d8274bc4",
	0,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"5fd4b85d-f891-4612-913b-7a54265a4be8");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"5fd4b85d-f891-4612-913b-7a54265a4be8",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("5fd4b85d-f891-4612-913b-7a54265a4be8",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("bf5998bf-03d0-43f2-90ba-96dab5f0810b",
	"0a06fd51-6ac7-4863-9ba4-7d35d8274bc4",
	2,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"bf5998bf-03d0-43f2-90ba-96dab5f0810b");
INSERT INTO DIM_GE
	VALUES (4625.000000,
	3064.000000,
	"bf5998bf-03d0-43f2-90ba-96dab5f0810b",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("bf5998bf-03d0-43f2-90ba-96dab5f0810b",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("39ac1d35-ce3a-4e02-ba29-a11ef25bade7",
	"0a06fd51-6ac7-4863-9ba4-7d35d8274bc4",
	1,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"39ac1d35-ce3a-4e02-ba29-a11ef25bade7");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"39ac1d35-ce3a-4e02-ba29-a11ef25bade7",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("39ac1d35-ce3a-4e02-ba29-a11ef25bade7",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_LS
	VALUES ("5f73a648-79f7-4603-b242-94ea868bc890",
	"0a06fd51-6ac7-4863-9ba4-7d35d8274bc4",
	"00000000-0000-0000-0000-000000000000",
	"868e3589-4eac-4017-87af-82b97cd0cd1e",
	"671b3857-7750-4820-9d0f-ae18a68b2c08");
INSERT INTO DIM_WAY
	VALUES ("868e3589-4eac-4017-87af-82b97cd0cd1e",
	4758.000000,
	3115.000000,
	"0a06fd51-6ac7-4863-9ba4-7d35d8274bc4",
	"00000000-0000-0000-0000-000000000000",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_WAY
	VALUES ("671b3857-7750-4820-9d0f-ae18a68b2c08",
	4758.000000,
	3031.000000,
	"0a06fd51-6ac7-4863-9ba4-7d35d8274bc4",
	"00000000-0000-0000-0000-000000000000",
	"868e3589-4eac-4017-87af-82b97cd0cd1e");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"0a06fd51-6ac7-4863-9ba4-7d35d8274bc4",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("0a06fd51-6ac7-4863-9ba4-7d35d8274bc4",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ED
	VALUES ("6a598b2b-1c70-48d7-962d-ad540c60fd96",
	"00000000-0000-0000-0000-000000000000",
	"0a06fd51-6ac7-4863-9ba4-7d35d8274bc4");
INSERT INTO GD_GE
	VALUES ("d61d05dc-4eab-437e-b81f-7c14891d029b",
	"fe4eff0f-d141-4b5d-b665-36bcde14e4dc",
	"e01945fc-d801-4f49-950a-db659c2ffe83",
	41,
	0,
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Relationship Instance Reference::Instance State Machine::Destroying');
INSERT INTO GD_SHP
	VALUES ("d61d05dc-4eab-437e-b81f-7c14891d029b");
INSERT INTO GD_NCS
	VALUES ("d61d05dc-4eab-437e-b81f-7c14891d029b");
INSERT INTO DIM_ND
	VALUES (180.000000,
	84.000000,
	"d61d05dc-4eab-437e-b81f-7c14891d029b");
INSERT INTO DIM_GE
	VALUES (4685.000000,
	3295.000000,
	"d61d05dc-4eab-437e-b81f-7c14891d029b",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("d61d05dc-4eab-437e-b81f-7c14891d029b",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_CON
	VALUES ("514adb26-efb0-48b5-ad8c-993c6ab18f8b",
	4770.000000,
	3295.000000,
	"d61d05dc-4eab-437e-b81f-7c14891d029b");
INSERT INTO GD_GE
	VALUES ("c106894e-2bfa-4a59-9e91-fca32cbba061",
	"fe4eff0f-d141-4b5d-b665-36bcde14e4dc",
	"5c38aa8c-b246-48bd-a645-13758c5b34db",
	42,
	0,
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Relationship Instance Reference::Instance State Machine::Creating::RREF2: destroy');
INSERT INTO GD_CON
	VALUES ("c106894e-2bfa-4a59-9e91-fca32cbba061",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("5dd66cc6-b17a-448d-b4e1-b95e97b0a68b",
	"c106894e-2bfa-4a59-9e91-fca32cbba061",
	0,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"5dd66cc6-b17a-448d-b4e1-b95e97b0a68b");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"5dd66cc6-b17a-448d-b4e1-b95e97b0a68b",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("5dd66cc6-b17a-448d-b4e1-b95e97b0a68b",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("7c4be49c-5dcd-4028-8c76-e1f024276dc0",
	"c106894e-2bfa-4a59-9e91-fca32cbba061",
	2,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"7c4be49c-5dcd-4028-8c76-e1f024276dc0");
INSERT INTO DIM_GE
	VALUES (4792.000000,
	3242.000000,
	"7c4be49c-5dcd-4028-8c76-e1f024276dc0",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("7c4be49c-5dcd-4028-8c76-e1f024276dc0",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("aaf6e266-ebf7-4fc6-9ead-2e864d8287a9",
	"c106894e-2bfa-4a59-9e91-fca32cbba061",
	1,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"aaf6e266-ebf7-4fc6-9ead-2e864d8287a9");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"aaf6e266-ebf7-4fc6-9ead-2e864d8287a9",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("aaf6e266-ebf7-4fc6-9ead-2e864d8287a9",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_LS
	VALUES ("28fd5354-3fe7-4cb9-998a-0229fd1350d7",
	"c106894e-2bfa-4a59-9e91-fca32cbba061",
	"00000000-0000-0000-0000-000000000000",
	"16a1ba64-584d-4c03-bfdc-be9c3e0dfe62",
	"2ee01143-2a39-4eb9-b65c-17e1e650ae9e");
INSERT INTO DIM_WAY
	VALUES ("16a1ba64-584d-4c03-bfdc-be9c3e0dfe62",
	4770.000000,
	3212.000000,
	"c106894e-2bfa-4a59-9e91-fca32cbba061",
	"00000000-0000-0000-0000-000000000000",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_WAY
	VALUES ("2ee01143-2a39-4eb9-b65c-17e1e650ae9e",
	4770.000000,
	3295.000000,
	"c106894e-2bfa-4a59-9e91-fca32cbba061",
	"00000000-0000-0000-0000-000000000000",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"c106894e-2bfa-4a59-9e91-fca32cbba061",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("c106894e-2bfa-4a59-9e91-fca32cbba061",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ED
	VALUES ("3dc1bd44-e972-4250-895e-b335d0f22d62",
	"514adb26-efb0-48b5-ad8c-993c6ab18f8b",
	"c106894e-2bfa-4a59-9e91-fca32cbba061");
INSERT INTO DIM_DIA
	VALUES ("fe4eff0f-d141-4b5d-b665-36bcde14e4dc",
	'',
	1.000000,
	0.000000,
	0.000000,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO O_OBJ_PROXY
	VALUES ("2226400a-ceb6-4a62-b5fa-47c383fedf22",
	'Relationship Instance Reference',
	428,
	'RREF',
	'A relationship  instance reference is the type to which all relationship 
instances must conform. 
    This is a core type that says relationship instances have a common set of 
operations defined for usage.',
	"00000000-0000-0000-0000-000000000000",
	'../Relationship Instance Reference.xtuml');
